package com.dian.diabetes.dialog;

import com.dian.diabetes.R;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.widget.Button;

public class MeasureDialog extends Dialog {
	
	private Button okBtn;

	public MeasureDialog(Context context) {
		super(context, R.style.Dialog);
		setContentView(R.layout.dialog_alert_measure);
		this.setCanceledOnTouchOutside(true);
		initDialog();
	}
	

	private void initDialog() {
		okBtn = (Button) findViewById(R.id.ok_btn);
		okBtn.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {				
				dismiss();
			}
		});

	}
	
	public void setOkText(String text){
		okBtn.setText(text);
	}
	
	public interface CallBack {
		void callBack();
		void cancel();
	}

}
